package com.reins.bookstore.service;

import com.reins.bookstore.entity.Book;
import com.reins.bookstore.object.BookDTO;
import com.reins.bookstore.object.BookRate;
import com.reins.bookstore.object.Filter;

import java.util.List;


public interface BookService {

    BookDTO findBookById(Integer id);

    List<BookDTO> findAllBooks();

    List<BookDTO> findAllBooksByIds(List<Integer> id);

    List<BookDTO> getBooks();
    List<BookDTO> getBooks(String key);

    BookDTO saveOneBook(Book add);

    Integer deleteOneBook(Integer id);

    List<BookRate> getBookRate(Filter filter);

    List<BookRate> getMostHotBooks(Integer top_k);

    List<BookRate> getMostExpensiveBooks(Integer front_idx, Integer end_idx, Integer top_k);



}
